package example.hibernate.daoImp;

import org.hibernate.HibernateException;
import org.hibernate.Session;

import example.hibernate.dao.BaseDao;

public class UserDao implements BaseDao {
	
	private Session session;
	
	@Override
	public void saveObject(Object obj) throws HibernateException {
		session.save(obj);

	}

	@Override
	public Session getSession() {
		return this.session;
	}

	@Override
	public void setSession(Session session) {
		this.session = session;
	}

}
